<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-model指令的修饰符</title>
</head>
<body>
  <div id="app">
    <input type="text" placeholder="姓名" v-model.trim="username">
    <hr>
    <input type="text" placeholder="年龄" v-model.number="age">
    <hr>
    <input type="text" placeholder="地址" v-model.lazy="address">
  </div>
  <script src="../code/lib/vue-2.6.12.js"></script>
  <script>
    const vm=new Vue({
      el:'#app',
      data:{
        username:'',
        age:'',
        address:''
      }
    })
  </script>
</body>
</html>